package com.tianyadu.mmall.core.validate.code.service;

import com.tianyadu.mmall.core.validate.code.ValidateCode;
import org.springframework.web.context.request.ServletWebRequest;

/**
 * 校验码生成器
 *
 * @author xueyj
 * @date 2019-11-12 21:42
 */
public interface ValidateCodeGenerator {

    /**
     * 生成图形校验码
     *
     * @param request ServletWebRequest
     * @return com.tianyadu.mmall.core.validate.code.image.ImageCode
     * @author xueyj
     * @date 2019/11/12-21:45
     */
    ValidateCode generate(ServletWebRequest request);

}
